package com.joysuch.wwyt.bp.service;


import cn.hutool.core.date.StopWatch;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joysuch.wwyt.bp.bean.investigate.SimpleTaskAssign;
import com.joysuch.wwyt.bp.entity.BpInvestigateTaskAssign;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwk
 * @since 2021-09-16
 */
public interface BpInvestigateTaskAssignService extends IService<BpInvestigateTaskAssign> {

    List<Long> getUserIdsByTaskId(Long id);

    List<SimpleTaskAssign> getUserIdByTaskIds(List<Long> taskIds);

    List<SimpleTaskAssign> getHistoryUserIdByTaskIds(List<Long> taskIds);

    List<SimpleTaskAssign> getByTaskIds(List<Long> taskIds);

    long deleteByIds(List<Long> ids);

    Integer findAssignsCount(Long taskId);

    void deleteByTaskIdsAndUserIdNe(List<Long> taskIds, Long currentUserId);

    void clearInvestigateTaskAssignHis();

    void recalculateStatCount(StopWatch stopWatch);
}
